package com.dorado.example.pojo;

import com.dorado.kernel.excel.annotation.CellField;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class User {

	@CellField(title = "姓名")
	private String name;
	
	@CellField(title = "出生日期")//format = "yyyyMMdd HH:mm:ss"
	private Date birthday;


	@CellField(title = "年龄")
	private Integer age;
	@CellField(title = "存款金额")
	private BigDecimal deposit;
	
	@CellField(title = "电子邮件")
	private String email;
	
	@CellField(title = "地址")
	private String address;
	
	@Length(min = 11, max = 11, message = "手机号长度限制为11位")
	@CellField(title = "Mobile")
	private String mobile;

	
}
